// #ifndef VUE3
import Vue from 'vue'
import Vuex from 'vuex'
// import { createStore } from 'vuex'ßßß
Vue.use(Vuex)
const store = new Vuex.Store({	
	// #endif
	state: {
		colorIndex: 0,
		colorList: ['#FF0000', '#00FF00', '#0000FF'],
	},
	mutations: {
		setColorIndex(state, index) {
			state.colorIndex = index
		},
	},
	getters: {
		currentColor(state) {
			return state.colorList[state.colorIndex]
		}
	},
	actions: {

	}
})

export default store
